package cn.com.zero.front.auth.vo;

import cn.com.zero.api.auth.vo.OnlineUserVO;

/**
 * @author xiongxj
 * @version 1.0.0
 * @Description 用户端在线用户VO类
 * @createTime 2023/3/30 10:06
 */
public class FrontOnlineUserVO extends OnlineUserVO {

    private static final long serialVersionUID = 5315175935691898600L;
    /**
     * 用户手机号
     */
    private String mobile;

    /**
     * 用户名称
     */
    private String userName;

    @Override
    public OnlineUserVO clone(OnlineUserVO onlineUserVO) {
        FrontOnlineUserVO frontOnlineUserVO = null;
        try {
            frontOnlineUserVO = (FrontOnlineUserVO) super.clone();
        } catch (CloneNotSupportedException e) {
            frontOnlineUserVO = new FrontOnlineUserVO();
        }
        frontOnlineUserVO.setUserId(onlineUserVO.getUserId());
        frontOnlineUserVO.setLoginDevice(onlineUserVO.getLoginDevice());
        frontOnlineUserVO.setLoginIp(onlineUserVO.getLoginIp());
        frontOnlineUserVO.setLoginTime(onlineUserVO.getLoginTime());
        return frontOnlineUserVO;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
